﻿<phoneNavigation:PhoneApplicationPage 
    x:Class="Calc3D.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}" Loaded="PhoneApplicationPage_Loaded" BackKeyPress="PhoneApplicationPage_BackKeyPress">
    
    
    <UserControl.Resources>
        
        <!--<Storyboard x:Name="stbScaleDetailsGrid">
            <DoubleAnimation x:Name="daDetailsGridScaleX" Storyboard.TargetName="DetailsGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" To="1" From="0.75"/>
            <DoubleAnimation x:Name="daDetailsGridScaleY" Storyboard.TargetName="DetailsGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" To="1" From="0.75"/>
        </Storyboard>-->
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Black">
        <Grid x:Name="ContentGrid" Grid.Row="1" Background="Black" ShowGridLines="True">
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform x:Name="scale" CenterX="240" CenterY="400"/>
                </TransformGroup>
            </Grid.RenderTransform>
            <Border x:Name="brdTest" BorderBrush="White" BorderThickness="4" Width="480" Height="800"/>
                <TextBlock Name="textBlock2" Text="Visual Studio 2010 for Windows phone" Margin="23,14,107,753" />
            
            <Button Content="1" Height="100" HorizontalAlignment="Left" Margin="30,247,0,0" Name="button1" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="2" Height="100" HorizontalAlignment="Left" Margin="136,247,0,0" Name="button2" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="3" Height="100" HorizontalAlignment="Left" Margin="242,247,0,0" Name="button3" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="4" Height="100" HorizontalAlignment="Left" Margin="30,353,0,0" Name="button4" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="5" Height="100" HorizontalAlignment="Left" Margin="136,353,0,0" Name="button5" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="6" Height="100" HorizontalAlignment="Left" Margin="242,353,0,0" Name="button6" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="7" Height="100" HorizontalAlignment="Left" Margin="30,459,0,0" Name="button7" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="8" Height="100" HorizontalAlignment="Left" Margin="136,459,0,0" Name="button8" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="9" Height="100" HorizontalAlignment="Left" Margin="242,459,0,0" Name="button9" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="." Height="100" HorizontalAlignment="Left" Margin="30,565,0,0" Name="button10" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="0" Height="100" HorizontalAlignment="Left" Margin="136,565,0,0" Name="button11" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="C" Height="100" HorizontalAlignment="Left" Margin="242,565,0,0" Name="button12" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="+" Height="100" HorizontalAlignment="Left" Margin="348,247,0,0" Name="button13" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="-" Height="100" HorizontalAlignment="Left" Margin="348,353,0,0" Name="button14" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="*" Height="100" HorizontalAlignment="Left" Margin="348,459,0,0" Name="button15" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <Button Content="/" Height="100" HorizontalAlignment="Left" Margin="348,565,0,0" Name="button16" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <CheckBox Content="3D Buttons" Height="35" HorizontalAlignment="Left" Margin="30,671,0,0" Name="checkBox1" VerticalAlignment="Top" Width="312" Checked="checkBox1_Checked" Unchecked="checkBox1_Unchecked" Foreground="White" />
            <CheckBox Content="Click Animations" Height="35" Margin="30,733,0,0" Name="checkBox2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="242" Foreground="White" />
            <TextBlock Height="56" HorizontalAlignment="Left" Margin="30,185,0,0" Name="textBlock1" Text="" VerticalAlignment="Top" Width="418" Foreground="White" FontSize="36" TextAlignment="Right" />
            <Button Content="=" Height="118" HorizontalAlignment="Left" Margin="348,671,0,0" Name="button17" VerticalAlignment="Top" Width="100" Foreground="White" BorderBrush="White" />
            <TextBlock Margin="24,54,15,646" Name="textBlock3" Text="3D Calculator" FontSize="56" />
        </Grid>
        <Grid x:Name="DetailsGrid" Grid.Row="1" Background="Black" Visibility="Collapsed">
            
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform x:Name="scale2" CenterX="240" CenterY="400" ScaleX="0.75" ScaleY="0.75"/>
                </TransformGroup>
            </Grid.RenderTransform>
            <Border x:Name="brdTest2" BorderBrush="White" BorderThickness="4" Width="480" Height="800"></Border>
            <TextBlock Width="430" Foreground="White" Margin="50,50,40,135" OpacityMask="Black" x:Name="DetailsText" FontSize="36" Height="750">    
            </TextBlock>
        </Grid>
    </Grid>
    
    
</phoneNavigation:PhoneApplicationPage>